package com.weakteam.orderonline.adminconsole.gwt.client.widget;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HorizontalPanel;


/**
 * Created by ZabbarovMZ on 15.04.2014.
 */
public class MenuCategoryControl extends HorizontalPanel {

    public Button addButton;
    public Button editButton;
    public Button removeButton;

    public MenuCategoryControl() {
        this.addButton = new Button("Add");
        this.editButton = new Button("Edit");
        this.removeButton = new Button("Remove");
        this.add(addButton);
        this.add(editButton);
        this.add(removeButton);
    }

    public void setItemSelectedMode(boolean enable) {
        this.editButton.setEnabled(enable);
        this.removeButton.setEnabled(enable);
    }
}
